package com.luguangtao.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @类名: com.luguangtao.entity
 * @作者: lgt
 * @创建时间: 2019-12-17 08:39
 * @描述:4.	编写一个Student学生实体类
 **/
@Document(collection = "student")
@Data
public class Student {

    //id,name,code,age,phone,sex

    @Field("_id")
    private String _id;
    @Field("id")
    private Long id;
    @Field("name")
    private String name;
    @Field("codes")
    private String codes;
    @Field("age")
    private Integer age;
    @Field("phone")
    private String phone;
    @Field("sex")
    private String sex;
}
